package com.chuantou.yuba.api.to;

import android.os.Parcel;
import android.os.Parcelable;

import com.chuantou.yuba.util.Constants;
import com.google.gson.annotations.SerializedName;

/**
 * 约钓详情->评论TO
 * 
 * @author dl1001
 * 
 */
public class FishingCommentTO implements Parcelable {
	// 评论ID
	@SerializedName("id")
	private long id;
	// 约钓ID
	@SerializedName("yid")
	private long fishingId;
	// 评论用户id
	@SerializedName("uid")
	private long uid;
	// 评论内容
	@SerializedName("content")
	private String content;
	// 评论时间戳，单位秒
	@SerializedName("dateline")
	private long commentTime;
	// 评论用户昵称
	@SerializedName("username")
	private String username;
	// 评论用户性别，默认男性
	@SerializedName("sex")
	private int sex = Constants.SEX_MALE;
	// 评论者头像
	@SerializedName("avatar")
	private String avatar;

	public FishingCommentTO() {
	}

	public FishingCommentTO(Parcel source) {
		// TODO 需要序列化试再做
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO 需要序列化试再做
	}

	public static final Creator<FishingCommentTO> CREATOR = new Creator<FishingCommentTO>() {

		@Override
		public FishingCommentTO[] newArray(int size) {
			return new FishingCommentTO[size];
		}

		@Override
		public FishingCommentTO createFromParcel(Parcel source) {
			return new FishingCommentTO(source);
		}
	};

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getUid() {
		return uid;
	}

	public void setUid(long uid) {
		this.uid = uid;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public long getCommentTime() {
		return commentTime;
	}

	public void setCommentTime(long commentTime) {
		this.commentTime = commentTime;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public long getFishingId() {
		return fishingId;
	}

	public void setFishingId(long fishingId) {
		this.fishingId = fishingId;
	}

}
